from django.conf.urls.defaults import patterns, include, url
from shop.views import JSONItemView

urlpatterns = patterns('dessert_house.shop.views',
    url(r'^$', 'browse'),
    url(r'^cart$', 'cart'),
    url(r'^checkout$', 'checkout'),
    url(r'^reserve$', 'reserve'),
    url(r'^payoff/(?P<pk>\d+)$', 'payoff'),
    url(r'^check-deposit$', 'check_deposit'),
    url(r'^set-getday$', 'set_getday'),
    url(r'^cart/add$', 'add_to_cart'),
    url(r'^item/(?P<pk>\d+)$', JSONItemView.as_view()),
)
